package com.iris.live.services.data.repositories;

import com.iris.live.services.data.models.Lsh精品Nc分类Model;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.transaction.annotation.Transactional;

/**
 * Created by ThinkPad on 2016/9/20.
 */
@Transactional
public interface Lsh精品Nc分类Repository extends JpaRepository<Lsh精品Nc分类Model, Integer>, JpaSpecificationExecutor<Lsh精品Nc分类Model> {

    @Query("select a from Lsh精品Nc分类Model a where a.nc分类=?1")
    Lsh精品Nc分类Model getIdByNc分类(String nc分类);
}
